import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../AppConfig/Config.dart';

class UserClassroom extends StatefulWidget {
  const UserClassroom({super.key});

  @override
  State<UserClassroom> createState() => _UserClassroomState();
}

class _UserClassroomState extends State<UserClassroom> {
  @override
  Widget build(BuildContext context) {
    final screenSize = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        backgroundColor: Colors.white,
        title: Text("货主课堂",style: TextStyle(color: Colors.black,fontWeight: FontWeight.w300,fontSize: 16.sp),),
        centerTitle: true,
      ),
      body: ListView(
        children: [
          Image.asset("lib/Images/PersonCenter/新手货主必看必学.png",width: screenSize.width,height: 100.h,),
          Container(
            padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
            color: Colors.white,
            height: screenSize.height-200.h,
            child: ListView.builder(
            itemCount:3 ,
            itemBuilder: (context, index) {
            return Column(
              children: [
                Row(
                  children: [
                    Image.network( "https://t12.baidu.com/it/u=2009860844,206760771&fm=30&app=106&f=JPEG?w=640&h=426&s=41313C722D374B925CF3F3D30300D0A9",
                      width: 45.w,height: 45.h,fit: BoxFit.cover,),
                    SizedBox(width: 8.w,),
                    Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        Text("新人礼包、订单补贴、一对一运营帮扶",style: TextStyle(color: Colors.black),),
                        Text("重磅上线“好运计划”",style: TextStyle(color: MyColors.authTipColor),),
                      ],
                    ),

                  ],
                ),
                Divider(height: 16.h,color: MyColors.backgreyColor,)
              ],
            );
            }
            ),
          )
        ],
      ),
    );
  }
}
